export const useForgetStore = defineStore('forget', () => {
  let formData = ref({
    code: '',
    account: '',
    graphicCaptcha: '',
    accept: false,
    send: false,
  });

  let passwords = ref({
    password: '',
    rePassword: '',
  });

  // 清空信息
  function clearInfo() {
    formData.value = {
      code: '',
      account: '',
      graphicCaptcha: '',
      accept: false,
      send: false,
    };
    passwords.value = {
      password: '',
      rePassword: '',
    };
  }

  return ({
    formData,
    passwords,
    clearInfo,
  });
});

